<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="description" content="后台管理">
    <!-- Twitter meta-->
    <title>后台管理</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Main CSS-->
    <link rel="stylesheet" type="text/css" href="../public/admin/css/main.css">
    <!-- Font-icon css-->
    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
      <script src="../public/home/js/jquery-3.3.1.js"></script>
  </head>
  <body class="app sidebar-mini rtl">
  <?php if(!empty($_COOKIE['uname']) && !empty($_COOKIE['auth'])) { ?>
    <header class="app-header"><a class="app-header__logo" href="index.html">征婚后台管理</a>
      <a class="app-sidebar__toggle" href="#" data-toggle="sidebar" aria-label="Hide Sidebar"></a>
      <ul class="app-nav">
        <li class="app-search">
          <input class="app-search__input" type="search" placeholder="Search">
          <button class="app-search__button"><i class="fa fa-search"></i></button>
        </li>
        <li class="dropdown"><a class="app-nav__item" href="#" data-toggle="dropdown" aria-label="Show notifications"><i class="fa fa-bell-o fa-lg"></i></a>
        </li>
        <!-- User Menu-->
        <li class="dropdown"><a class="app-nav__item" href="#" data-toggle="dropdown" aria-label="Open Profile Menu"><i class="fa fa-user fa-lg"></i></a>
          <ul class="dropdown-menu settings-menu dropdown-menu-right">
            <li><a class="dropdown-item" href="contro.php?a=exit"><i class="fa fa-sign-out fa-lg"></i> 退出</a></li>
          </ul>
        </li>
      </ul>
    </header>
    <!-- Sidebar menu-->
    <div class="app-sidebar__overlay" data-toggle="sidebar"></div>
    <aside class="app-sidebar">
      <div class="app-sidebar__user"><img class="app-sidebar__user-avatar" src="https://s3.amazonaws.com/uifaces/faces/twitter/jsa/48.jpg" alt="User Image">
        <div>
          <p class="app-sidebar__user-name"><?php echo $_COOKIE['uname']?></p>
          <p class="app-sidebar__user-designation"><?php echo $_COOKIE['auth']?></p>
        </div>
      </div>
      <ul class="app-menu">
        <li><a class="app-menu__item active" href="admin.php"><i class="app-menu__icon fa fa-dashboard"></i><span class="app-menu__label">首页</span></a></li>
        <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-th-list"></i><span class="app-menu__label">用户管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
          <ul class="treeview-menu">
            <li><a class="treeview-item" href="./user/user.php"><i class="icon fa fa-circle-o"></i> 用户信息</a></li>
          </ul>
            <ul class="treeview-menu">
                <li><a class="treeview-item" href="./user/add.php"><i class="icon fa fa-circle-o"></i> 添加用户</a></li>
            </ul>
        </li>


        <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-file-text"></i><span class="app-menu__label">板块管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
          <ul class="treeview-menu">
            <li><a class="treeview-item" href="./plate/plate.php"><i class="icon fa fa-circle-o"></i>浏览版块信息</a></li>
            <li><a class="treeview-item" href="./plate/father_add.php"><i class="icon fa fa-circle-o"></i> 添加父板块</a></li>
          </ul>
        </li>

          <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-file-text"></i><span class="app-menu__label">会员管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
              <ul class="treeview-menu">
                  <li><a class="treeview-item" href="./vip/vip.php"><i class="icon fa fa-circle-o"></i>会员信息</a></li>
                  <li><a class="treeview-item" href="./vip/add.php"><i class="icon fa fa-circle-o"></i>添加会员</a></li>
              </ul>
          </li>
          <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">帖子管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
              <ul class="treeview-menu">
                  <li><a class="treeview-item" href="./post/post.php"><i class="icon fa fa-circle-o"></i> 帖子列表</a></li>
                  <li><a class="treeview-item" href="./post/delete.php"><i class="icon fa fa-circle-o"></i>回收站</a></li>
              </ul>
          </li>
          <?php $auth = $_COOKIE['auth'];
             if ($auth == '管理员') {
                 ?>
                 <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">网站配置</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                     <ul class="treeview-menu">
                         <li><a class="treeview-item" style="color: #fff;" onclick="jquery:alert('你目前木这个权限')"><i class="icon fa fa-circle-o"></i>网站维护管理</a></li>
                     </ul>
                 </li>
                 <?php
             }else{
          ?>
                 <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">网站配置</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                     <ul class="treeview-menu">
                         <li><a class="treeview-item" href="./wang.php"><i class="icon fa fa-circle-o"></i>网站维护管理</a></li>
                     </ul>
                 </li>
          <?php }?>

      </ul>
    </aside>
    <main class="app-content">
      <div class="app-title">
        <div>
          <h1><i class="fa fa-dashboard"></i> 首页</h1>
        </div>
        <ul class="app-breadcrumb breadcrumb">
          <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
          <li class="breadcrumb-item"><a href="admin.php">首页</a></li>
        </ul>
      </div>
      <div class="row">
        <div class="col-md-6">
          <div class="tile">
            <h3 class="tile-title">后台信息</h3>
            <ul>
              <li>今日更新的信息</li>
            </ul>
            <p class="mt-4 mb-4">
              <a class="btn btn-primary mr-2 mb-2" href="#" target="_blank"><i class="fa fa-file"></i>Docs</a>
              <a class="btn btn-info mr-2 mb-2" href="#" target="_blank"><i class="fa fa-github"></i>GitHub</a>
              <a class="btn btn-success mr-2 mb-2" href="#" target="_blank"><i class="fa fa-download"></i>Download</a>
            </p>
          </div>
        </div>
        <div class="col-md-6">
          <div class="tile">
            <h3 class="tile-title">网络配置信息</h3>
              <table class="table table-hover">
                  <thead>
                  <tr>
                      <th colspan="2" scope="col">服务器信息</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr>
                      <th width="30%">服务器计算机名</th>
                      <td><span id="lbServerName">http://127.0.0.1/</span></td>
                  </tr>
                  <tr>
                      <td>服务器IP地址</td>
                      <td>192.168.1.1</td>
                  </tr>
                  <tr>
                      <td>服务器域名</td>
                      <td>x.xuebingsi.com</td>
                  </tr>
                  <tr>
                      <td>服务器端口 </td>
                      <td>80</td>
                  </tr>
                  <tr>
                      <td>服务器IIS版本 </td>
                      <td>Microsoft-IIS/6.0</td>
                  </tr>
                  <tr>
                      <td>本文件所在文件夹 </td>
                      <td>D:\WebSite\HanXiPuTai.com\XinYiCMS.Web\</td>
                  </tr>
                  <tr>
                      <td>服务器操作系统 </td>
                      <td>Microsoft Windows NT 5.2.3790 Service Pack 2</td>
                  </tr>
                  <tr>
                      <td>系统所在文件夹 </td>
                      <td>C:\WINDOWS\system32</td>
                  </tr>
                  <tr>
                      <td>服务器脚本超时时间 </td>
                      <td>30000秒</td>
                  </tr>
                  <tr>
                      <td>服务器的语言种类 </td>
                      <td>Chinese (People's Republic of China)</td>
                  </tr>
                  <tr>
                      <td>.NET Framework 版本 </td>
                      <td>2.050727.3655</td>
                  </tr>
                  <tr>
                      <td>服务器当前时间 </td>
                      <td>2017-01-01 12:06:23</td>
                  </tr>
                  <tr>
                      <td>服务器IE版本 </td>
                      <td>6.0000</td>
                  </tr>
                  <tr>
                      <td>服务器上次启动到现在已运行 </td>
                      <td>7210分钟</td>
                  </tr>
                  <tr>
                      <td>逻辑驱动器 </td>
                      <td>C:\D:\</td>
                  </tr>
                  <tr>
                      <td>CPU 总数 </td>
                      <td>4</td>
                  </tr>
                  <tr>
                      <td>CPU 类型 </td>
                      <td>x86 Family 6 Model 42 Stepping 1, GenuineIntel</td>
                  </tr>
                  <tr>
                      <td>虚拟内存 </td>
                      <td>52480M</td>
                  </tr>
                  <tr>
                      <td>当前程序占用内存 </td>
                      <td>3.29M</td>
                  </tr>
                  <tr>
                      <td>Asp.net所占内存 </td>
                      <td>51.46M</td>
                  </tr>
                  <tr>
                      <td>当前Session数量 </td>
                      <td>8</td>
                  </tr>
                  <tr>
                      <td>当前SessionID </td>
                      <td>gznhpwmp34004345jz2q3l45</td>
                  </tr>
                  <tr>
                      <td>当前系统用户名 </td>
                      <td>NETWORK SERVICE</td>
                  </tr>
                  </tbody>
              </table>
              <div class="page">
                  当前<?php echo $p;?>/<?php echo $page_All;?>页 总条数：<?php echo $num_All;?>条&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="./user.php?p=1&search=<?php echo @$search?>">首页</a>&nbsp;&nbsp;&nbsp;
                  <a href="./user.php?p=<?php echo $p<=1?1:($p-1)?>&search=<?php echo @$search?>">上一页</a>&nbsp;&nbsp;&nbsp;
                  <a href="./user.php?p=<?php echo $p>=$page_All?$page_All:($p+1)?>&search=<?php echo @$search?>">下一页</a>&nbsp;&nbsp;&nbsp;
                  <a href="./user.php?p=<?php echo $page_All;?>&search=<?php echo @$search?>">尾页</a>&nbsp;&nbsp;&nbsp;
              </div>
          </div>
        </div>
      </div>
    </main>
    <script src="../public/admin/js/jquery-3.2.1.min.js"></script>
    <script src="../public/admin/js/popper.min.js"></script>
    <script src="../public/admin/js/bootstrap.min.js"></script>
    <script src="../public/admin/js/main.js"></script>
    <script src="../public/admin/js/plugins/pace.min.js"></script>
      <?php
  }else{
      echo "<script>alert('你还没登录');window.location.href='index.php';</script>";die;
  }
  ?>
  </body>
</html>

